package com.bandit.service.impl;

import com.bandit.mapper.MajorInfoMapper;
import com.bandit.pojo.MajorInfo;
import com.bandit.service.MajorInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorInfoServiceImpl implements MajorInfoService {

    @Autowired
    MajorInfoMapper majorInfoMapper;

    @Override
    public MajorInfo selectMajorInfoById(String id) {
        return majorInfoMapper.selectMajorInfoById(id);
    }

    @Override
    public List<MajorInfo> selectMajorInfoList(MajorInfo majorInfo) {
        return majorInfoMapper.selectMajorInfoList(majorInfo);
    }

    @Override
    public int insertMajorInfo(MajorInfo majorInfo) {
        return majorInfoMapper.insertMajorInfo(majorInfo);
    }

    @Override
    public int updateMajorInfo(MajorInfo majorInfo) {
        return majorInfoMapper.updateMajorInfo(majorInfo);
    }

    @Override
    public int deleteMajorInfoById(String id) {
        return majorInfoMapper.deleteMajorInfoById(id);
    }

    @Override
    public int deleteMajorInfoByIds(String[] ids) {
        return majorInfoMapper.deleteMajorInfoByIds(ids);
    }
}
